package connection {
import flash.events.IEventDispatcher;
import flash.geom.Point;

[Event(name="change", type="geditor.events.ChangeEvent")]
public interface ConnectionPoint extends IEventDispatcher {
    /**
     * Graphical point for connection
     * @return Point of connection
     */
    function get point():Point;

    /**
     * Defines if this point can be start or end of Connection conn
     * @param conn ConnectionComponent to check
     * @param start true - if this is start, false - if this is end of connection
     * @return can be connected or not
     */
    function canConnect(conn:ConnectionComponent, start:Boolean):Boolean;

    /**
     * @return Connectable, this point belongs to (parent)
     */
    function get connectable():Connectable;
}
}